#coding=utf-8

# lonote的說明文件放在這裡

import platform

from PyQt4.QtCore import qVersion, PYQT_VERSION_STR

from lonote.version import version
import lonote.path as path

dataFmt = {
        '$VERSION': version,
        '$QT_VERSION': qVersion(),
        '$PYQT_VERSION': PYQT_VERSION_STR,
        '$PYTHON_VERSION': platform.python_version(),
        '$PLATFORM': platform.platform(),
        '$ICON': path.icons.about,
        '$DESIGNER_NAME': '林雪凡=Civa Lin',
        '$DESIGNER_BLOGGER': 'http://wfst.blogspot.com',
        '$DESIGNER_MAIL': 'larina.wf@gmail.com',
        '$MANUAL_PAGE': 'http://code.google.com/p/lonote/wiki/Manual',
        '$PROJECT_SITE': 'http://code.google.com/p/lonote/',
        '$FORUM_SITE': 'https://groups.google.com/forum/#!forum/lonote',
        '$KEEPNOTE_SITE': 'http://keepnote.org/',
        '$LICENSE_PAGE': 'http://www.gnu.org/licenses/gpl.html'}

#點F1會冒出來的Help內容
LoNoteInfo = _('''\
        <img src='{$ICON}' height=128 align=right style ='float:right'>
        <span style="font-size: xx-large;"><b>LoNote</b></span><span style="font-size: small;"> <sub><i>Ver. {$VERSION}</i></sub></span><hr width='90%'><br>
        <span style="font-size: small;"><i>designer：<b>{$DESIGNER_NAME} （<a href="{$DESIGNER_BLOGGER}">blog</a>）</b></i></span><br>
        <span style="font-size: small;"><i>mail: <b><a href='mailto:{$DESIGNER_MAIL}'>{$DESIGNER_MAIL}</a></b></i></span><br>
        <br>
        LoNote is a Free Software, suitable for personal note-taking.<br>
        <br>
        If you have some using problems. Here is <a href='{$MANUAL_PAGE}'>Manual</a>. On the other hand, you can also visit <a href="{$PROJECT_SITE}">The LoNote Project</a> to look up developing status, or <a href="{$FORUM_SITE}">sharing your opinion</a>.<br>
        <br>
        Initially, I designed this program for writing novels. I hope you like it so.<br>
        LoNote inherit <a href='{$KEEPNOTE_SITE}'>keepnote</a>'s design philosophy. Thanks for every forerunner.<br>
        <br>
        This program release by <a href='{$LICENSE_PAGE}'>GNU GPLv3 License</a>.''').format(**dataFmt)

SystemInfo = _('''\
-- Your System Detail --
Python Version: {$PYTHON_VERSION}
Qt Version: {$QT_VERSION} , PyQt Version: {$PYQT_VERSION}
{$PLATFORM}''').format(**dataFmt)
